<%--
    Document   : profile
    Created on : Apr 12, 2010, 3:04:53 PM
    Author     : Guy Sagy
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhmtl1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

    <!-- head section -->
    <head>
        <meta name="author" content="Guy Sagy" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="resources/company_icon_32x32.ico" rel="shortcut icon" type="image/ico" />
        <link href="css/${presentationMedium}/main.css" rel="stylesheet" type="text/css" />
        <link href="css/${presentationMedium}/menubar.css" rel="stylesheet" type="text/css" />
        <link href="css/${presentationMedium}/formlayout.css" rel="stylesheet" type="text/css" />
        <script src="js/3rdpartylibs/jslib_dom_ready.js" type="text/javascript"></script>
        <script src="js/3rdpartylibs/jslib_css.js" type="text/javascript"></script>
        <script src="js/3rdpartylibs/jslib_event.js" type="text/javascript"></script>
        <script src="js/3rdpartylibs/jslib_event_mouse.js" type="text/javascript"></script>
        <script src="js/3rdpartylibs/jslib_event_keyboard.js" type="text/javascript"></script>
        <script src="js/button_handlers.js" type="text/javascript"></script>
        <script src="js/menubar.js" type="text/javascript"></script>
        <title>${appTitle} - ${pageTitle}</title>
    </head>

    <body>

        <!-- body header section -->
        <div id="captionBar">
            <h1>${appTitle} - Welcome ${user.profile.firstName} ${user.profile.lastName}</h1>
        </div>

        <%@ include file="WEB-INF/jspf/new_mainmenu.jspf" %>

        <!-- body main section -->
        <div id="main">
            <h1 align="center">${pageTitle}</h1>
            <table align="center">
            <tr>
                <form action="<%= response.encodeURL((String)request.getAttribute("formAction")) %>" method="post">
                    <table align="center" cellpadding="5" border="1">
                        <tr>
                            <th align="right"><label for="firstName">First name:</label></th>
                            <td><input id="firstName" type="text" name="firstName" ${readOnly} value="${user.profile.firstName}"/></td>
                        </tr>
                        <tr>
                            <th align="right"><label for="lastName">Last name:</label></th>
                            <td><input id="lastName" type="text" name="lastName" ${readOnly} value="${user.profile.lastName}"/></td>
                        </tr>
                        <tr>
                            <th align="right"><label for="emailAddress">Email address:</label></th>
                            <td><input id="emailAddress" type="text" name="emailAddress" ${readOnly} value="${user.profile.emailAddress}"/></td>
                        </tr>
                    </table>
                    <br/>
                    <center>
                    ${buttons}
                    </center>
                </form>
            </tr>
            </table>
        </div>

        <!-- body footer section -->
        <%@include file="WEB-INF/jspf/footer.jspf" %>
            
    </body>
</html>
